package com.aisile.admin.service;

import com.aisile.model.admin.dtos.ChannelDto;
import com.aisile.model.admin.pojos.AdChannel;
import com.aisile.model.common.dtos.ResponseResult;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public interface AdChannelService {
    public ResponseResult findByNameAndPage(ChannelDto dto);
    /**
     * 根据条件以及分页查询数据
     * @param dto channeldto对象
     * @return 统一返回类
     */
    public ResponseResult findListByPage(ChannelDto dto);

    /**
     * 添加
     * @param adChannel
     * @return
     */
    public ResponseResult saveAdChannel(AdChannel adChannel);

    /**
     * 修改
     * @param id 要求改数据的id
     * @param adChannel 待修改的对象
     * @return
     */
    public ResponseResult updateAdChannel(AdChannel adChannel);





    ResponseResult getPageList(ChannelDto dto);

    ResponseResult deleteId(int id);


    ResponseResult updateStatusy(int id, boolean b);

    ResponseResult updateStatuso(int id, Boolean status);

    ResponseResult updateyStatusy(int id, Boolean status);


    ResponseResult daoChu2();

    ResponseResult daoChu(AdChannel adChannel);

    ResponseResult exportData();

    ResponseResult checkExportResultInRedis();
}
